package lec02.am;
import eq.util.MyArray;


public class CloneDemo {
	public static void main(String[] args) {
		int[] a={1,2,3,4,5};
		int [] b=a;
		MyArray.printArr(a);
		MyArray.printArr(b);
		a[0]++;
		MyArray.printArr(a);
		MyArray.printArr(b);
		//b=new int[a.length];
		//System.arraycopy(a, 0, b, 0, a.length);
		b=a.clone();
		a[0]++;
		MyArray.printArr(a);
		MyArray.printArr(b);
		
		
	}
}
